#ifndef _PRIMITIVESPHERE_
#define _PRIMITIVESPHERE_

#include "Primitive.h"
#include "GeomSphere.h"

class PrimitiveSphere: public Primitive{
protected:
	GeomSphere *mGeomPtr;
public:
	PrimitiveSphere( double Mass ): Primitive( Mass ){
		mGeom = new GeomSphere(mDim[0]/2);
		mGeom->translate(mOffset);
		mGeom->setPhysObject(this);
		mGeomPtr = static_cast<GeomSphere*>(mGeom);
	}
	PrimitiveSphere(Vec3d _offset, double _dia, double Mass) : Primitive(_offset, Vec3d(_dia, _dia, _dia), Mass){
		mGeom = new GeomSphere(_dia/2);
		mGeom->translate(mOffset);
		mGeom->setPhysObject(this);
		mGeomPtr = static_cast<GeomSphere*>(mGeom);
	}
	~PrimitiveSphere(){};

	Mat4d* getMassTensor();
};

#endif
